﻿jQuery.extend(Project_Paths, {
    "analysis/kjanalysis": '../gzgh/projects/sddc/script/analysis.kjanalysis',
    "query/find": '../gzgh/common/script/query.find',
    //"query/road": '../gzgh/common/script/query.road',
    "query/servicesall": '../gzgh/projects/sddc/script/query.servicesall',
    "business/statistic": '../gzgh/projects/sddc/script/business.statistic',
     "business/bzxxxg": '../gzgh/projects/sddc/script/business.bzxxxg'
});
jQuery.extend(Project_Shim, {
    "analysis/kjanalysis": { deps: ['css!../../gzgh/projects/sddc/css/analysis.kjanalysis.css'] },
    "query/find": { deps: ['css!../../gzgh/common/css/query.find.css'] },
    "business/bzxxxg": { deps: ['css!../../gzgh/projects/sddc/css/business.bzxxxg.css'] },
    "business/statistic": { deps: ['css!../../gzgh/projects/sddc/css/business.statistic.css'] }
});
Project_Models_Define_handler = function () {

    L.DCI.Layout.TopPanel.addInitHook(function () {
        $('.navbar-header-home').css('display', 'none');
        $(".navbar-header-title").attr("src", "gzgh/projects/sddc/image/sddc.png");
        $(".navbar-header-title").css({
            "height": "auto",
            "width": "auto",
            "margin-left": "-45px",
            "position": "absolute"
        });
        $('.navbar-header').css("background-image", "none");
        $('#navbar .navbar-form.navbar-left').css('margin-left', "50px");
    });
}

jQuery.extend(Project_ParamConfig, {
    //数据统计
    statistic: {
        url:"http://10.1.10.230:6080/arcgis/rest/services/SL/TJCX2016/MapServer"
    },
    //备注信息修改
    bzxxxg: {
        url: 'http://10.1.10.230:6080/arcgis/rest/services/SL/WYBZ/MapServer',
	wytzLayer: {
            url:'http://10.1.10.230:6080/arcgis/rest/services/SL/WYTZ/MapServer',
            name: '外业拓展',
            tableName: 'WYTZ',
            index: '0'
        },
        sj: [{
            name: "旧厂房", tableName: "JCF", field: "JCFNF"
        }, {
            name: "旧城镇", tableName: "JCH", field: "JCFNF"
        }, {
            name: "旧村庄", tableName: "JCU", field: "JCFNF"
        }]
    },

    //空间分析
    kjanalay: {
        qy: {
            tableName: 'ZJ',
            fields: ["CSMC", "FQMC", "ZJMC"]
        },
        ydlx: {
            layer: "YDXX",
            field: "YDXX_LX",

            options: [
            { name: "计划供地", value: "JHGD" },
            { name: "留用地", value: "LYD" },
            { name: "未开发用地", value: "WKFYD" },
            { name: "招拍挂", value: "ZPG" },
            ],

	    opt: [{
                name: "建设用地", root: true, children: [{
                    name: "国有建设用地", children: [{
                        name: "建成区", children: [{
                            name: "非三旧建成区", table: ""
                        }, {
                            name: "纳入三旧的旧厂", table: "JCF", filter: "SYQSX = '国有用地'"
                        }, {
                            name: "纳入三旧的旧城", table: "JCH", filter: "SYQSX = '国有用地'"
                        }]
                    }, {
                        name: "未建区", children: [{
                            name: "国有储备用地", table: "JHGD"
                        }, {
                            name: "已供未建地", table: ""
                        }]
                    }]
                }, {
                    name: "集体建设用地", children: [{
                        name: "建成区", children: [{
                            name: "未纳入三旧的村", table: ""
                        }, {
                            name: "纳入三旧的旧村", table: "JCU", filter: "SYQSX = '集体用地'"
                        }, {
                            name: "未纳入三旧集体物业（工业、商业、仓储等）", table: ""
                        }, {
                            name: "纳入三旧的集体旧厂", table: "JCF", filter: "SYQSX = '集体用地'"
                        }]
                    }, {
                        name: "未建区", children: [{
                            name: "村自留地", table: "LYD"
                        }]
                    }]
                }, {
                    name: "待征转用地（有规模、无指标）", children: [{
                        name: "违法建设用地", table: ""
                    }, {
                        name: "其他可征转用地", table: ""
                    }]
                }]
            }]
        },
        sj: {
            layer: "SJ",
            sde: [
            { name: "旧厂房", nf: null, tableName: "JCF", fields: "JCFNF", lxFieldName: "SJ_LX", nfFieldName: "JCF_JCFNF", },
            { name: "旧城镇", nf: null, tableName: "JCH", fields: "JCFNF", lxFieldName: "SJ_LX", nfFieldName: "JCH_JCFNF", },
            { name: "旧村庄", nf: null, tableName: "JCU", fields: "JCFNF", lxFieldName: "SJ_LX", nfFieldName: "JCU_JCFNF", }
            ]
        },
        tg: {
            layer: "TG",
            field: "TG_ZWYDXZ",

            tableName: 'TG',
            fields: 'ZWYDXZ'
        },
        kg: {
            layer: "KG",
            field: "KG_ZWYDXZ",

            tableName: 'KG',
            fields: ["KGFLDL", "KGFLZL"]//'ZWYDXZ'
        },
        rl: {
            layer: 'RLTC',
            field: "RLD",

            tableName: 'RLTC',
            fields: 'RLD'
        },

        XZQMapServicesURL: 'http://10.1.10.230:6080/arcgis/rest/services/QPdata/DTnew0715/MapServer/3',

        pre: {
            url: "http://10.1.10.230:6080/arcgis/rest/services/SL/YCL/MapServer",
            areafield: "SHAPE.AREA"
        },
        gpRegion: {
            url: "http://10.1.10.230:6080/arcgis/rest/services/SDDC/StatisticsR/GPServer/StatisticsR",
            areafield: "Shape_Area",
            inputParams: {
                In_Region: null,
                In_LayerName: null,
                In_AreaSql: null
            },
            outputParams: [{ name: "Out_Data", type: "string" }, { name: "Out_Data", type: "layer" }]
        },
        gpOrigin: {
            url: "http://10.1.10.230:6080/arcgis/rest/services/SDDC/StatisticsOrigin/GPServer/StatisticsRegion",
            areafield: "SHAPE_Area",
            inputParams: {
		In_Info: null,
                In_AreaWhere: null
            },
            outputParams: [{ name: "Out_Data", type: "string" }, { name: "Out_Data", type: "layer" }, { name: "Out_result", type: "string" }]
        },

        resultT: ["CSMC", "FQMC", "ZJMC", "CJMC", "TG_ZWYDXZ", "KG_ZWYDXZ"],

	showNumber: 1000
    },
    servicesall: {
        url: "http://10.1.10.230:6080/arcgis/rest/services/SLdata/CX2016new/MapServer",
        layers: [0, 1, 2, 3, 4, 5, 6, 7, 8, 9,10,11,12,13,14,15,16,17,18,19,20,21,22,23],
        fields: []
    },
    title: "时代地产",

    cadserver: 'http://10.1.10.228/CADServer10.2',

    defaultCoreServiceUrl: "http://10.1.10.230/sddconemapservices/v1",

    defaultUserImages: "http://10.1.10.230/sddconemapclient",

    defaultManageUrl: "http://10.1.10.230/sddconemapmanage/default.aspx",

    defaultProxy: "",

    oaSystemUrl: "",

    /*导入导出服务地址*/
    exportUrl: "http://10.1.10.230/sddconemapclient/modules/output/httpProxy.aspx",

    exportService: "http://10.1.10.230/sddconemapclient/modules/output/output.export.ashx",

    crs: {
        code: 'EPSG:3857',
        defs: '+proj=merc +lon_0=0 +k=1 +x_0=0 +y_0=0 +a=6378137.0 +b=6356752.314245179 +units=m +no_defs ',
        isLanLng: true
    },

    baseLayer: {
        type: '腾讯电子地图',//vector-矢量图 tile-切图 wmts-
        name: '地图',
        img: 'images/controls/grouplayer/map.png',
        url: "",
        layerType: "img",
        origin: [-20037508.342787, 20037508.342787],
        fullextent: [1.249690011067327E7,2583285.0484268083,1.2782913492251607E7,2743322.7817863305],
        tileSize: 256,
        minZoom: 0,
        maxZoom: 18,
        zoom: 9,
        resolutions: [156543.033928, 78271.5169639999, 39135.7584820001, 19567.8792409999, 9783.93962049996, 4891.96981024998, 2445.98490512499, 1222.99245256249, 611.49622628138, 305.748113140558, 152.874056570411, 76.4370282850732, 38.2185141425366, 19.1092570712683, 9.55462853563415, 4.77731426794937, 2.38865713397468, 1.19432856685505, 0.597164283559817],
        lods: [591657527.591555, 295828763.795777, 147914381.897889, 73957190.948944, 36978595.474472, 18489297.737236, 9244648.868618, 4622324.434309, 2311162.217155, 1155581.108577, 577790.554289, 288895.277144, 144447.638572, 72223.819286, 36111.909643, 18055.954822, 9027.977411, 4513.988705, 2256.994353]
    },
    changeLayers: [{
        type: '腾讯卫星地图',
        name: '影像图',
        img: 'images/controls/grouplayer/yingxiangtu.png',
        tileSize: 256,
        minZoom: 0,
        maxZoom: 18
    }],
});